package com.zscat.mallplus.center.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zscat.mallplus.center.entity.CenterVerification;

/**
 * 
 * 核销码Mapper接口
 * 
 * @author Wsen
 * @date 2020-09-28
 *
 */
public interface CenterVerificationMapper extends BaseMapper<CenterVerification>{
	/**
	 * 查询核销码
	 * 
	 * @param id 核销码ID
	 * @return 核销码
	 */
	public CenterVerification selectCenterVerificationById(Long id);

	/**
	 * 查询核销码列表
	 * 
	 * @param centerVerification 核销码
	 * @return 核销码集合
	 */
	public List<CenterVerification> selectCenterVerificationList(CenterVerification centerVerification);

	/**
	 * 新增核销码
	 * 
	 * @param centerVerification 核销码
	 * @return 结果
	 */
	public int insertCenterVerification(CenterVerification centerVerification);

	/**
	 * 修改核销码
	 * 
	 * @param centerVerification 核销码
	 * @return 结果
	 */
	public int updateCenterVerification(CenterVerification centerVerification);

	/**
	 * 删除核销码
	 * 
	 * @param id 核销码ID
	 * @return 结果
	 */
	public int deleteCenterVerificationById(Long id);

	/**
	 * 批量删除核销码
	 * 
	 * @param ids 需要删除的数据ID
	 * @return 结果
	 */
	public int deleteCenterVerificationByIds(Long[] ids);

	public Object adminList(Integer pageNum, Integer pageSize);
	
	/**
	 * 批量修改核销码
	 * @param ids 需要修改的数据ID
	 * @return 结果
	 */
	public int updateVerification(Long[] ids);

	public List<CenterVerification> adminListTotle();

}
